/*
 * @Author: your name
 * @Date: 2019-11-01 14:00:19
 * @LastEditTime: 2019-11-01 15:25:42
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \test-unifiled-beta\src\factories\public.js
 */
/*
    @desc 用户相关接口服务
*/
import Vue from 'vue';

const $http =  Vue.prototype.axios 

function publicNewsHotList(){
    return $http({
        method: "GET",
        url: '/api/public/news'
    })
}

function publicNewsDetail(link){
    return $http({
        method: "POST",
        url: '/api/public/newsDetail',
        params: {
            url: link
        }
    })
}

function publicNegativeParaList (){
    return $http({
        method: "GET",
        url: '/api/public/negativePara'
    })
}
export {
    publicNewsHotList,
    // publicNewsDetail,
    publicNegativeParaList 
}